<template>
  <div class="test-sql">
    <sql-editor v-model="sql" @change="onChange" ref="editor"></sql-editor>
  </div>
</template>
<script>
import SqlEditor from "@/components/sqlEditor";
export default {
  components: {SqlEditor},
  data() {
    return {
      sql: '',
    };
  },
  mounted() {
    this.$refs.editor.setTables(['table1', 'table2']);
  },
  methods: {
    onChange(val) {
    }
  },
};
</script>
<style lang="scss">
.test-drag {
}
</style>